package com.ys.entity.logistics;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TL_DecCustomBoxProduct", catalog="Id")
public class TlDecCustomBoxProduct extends BaseEntity<TlDecCustomBoxProduct> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="BoxCode", nameJava="boxCode", typeDataBase="varchar")
	private String boxCode;
	@YsField(nameDataBase="DecCustomProductId", nameJava="decCustomProductId", typeDataBase="bigint")
	private Long decCustomProductId;
	@YsField(nameDataBase="Num", nameJava="num", typeDataBase="int")
	private Integer num;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TlDecCustomBoxProduct setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TlDecCustomBoxProduct setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public String getBoxCode() {
		return boxCode;
	}
	public TlDecCustomBoxProduct setBoxCode(String boxCode) {
		this.boxCode = boxCode;
		return this;
	}
	public Long getDecCustomProductId() {
		return decCustomProductId;
	}
	public TlDecCustomBoxProduct setDecCustomProductId(Long decCustomProductId) {
		this.decCustomProductId = decCustomProductId;
		return this;
	}
	public Integer getNum() {
		return num;
	}
	public TlDecCustomBoxProduct setNum(Integer num) {
		this.num = num;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TlDecCustomBoxProduct setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TlDecCustomBoxProduct setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TlDecCustomBoxProduct setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TlDecCustomBoxProduct tlDecCustomBoxProduct(
		String pbid,
		String boxCode,
		Long decCustomProductId,
		Integer num,
		Integer status
			) {
		TlDecCustomBoxProduct entity = new TlDecCustomBoxProduct();
		entity.setPbid(pbid);
		entity.setBoxCode(boxCode);
		entity.setDecCustomProductId(decCustomProductId);
		entity.setNum(num);
		entity.setStatus(status);
		return entity;
	}
}